package com.cskaoyan.bean;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description: ${description}
 * @author: cuicui
 **/

@NoArgsConstructor
@Data
public  class DataDTO {
    private Integer total;//type=1的总数量
    private Integer pages;//总页数
    private Integer limit;//每页限制数据量
    private Integer page;//当前在第几页
    private List<ListDTO> list;//省份列表信息

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private Integer id;
        private String name;
        private Integer type;//1
        private Integer code;
        private List<ChildrenDTO> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenDTO {
            private Integer id;
            private String name;
            private Integer type;//2
            private Integer code;
            private List<ChildrenDTO2> children;

            @NoArgsConstructor
            @Data
            public static class ChildrenDTO2 {
                private Integer id;
                private String name;
                private Integer type;//3
                private Integer code;
            }
        }
    }
}


